package com.xing.hosp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author: xingfuhao
 * @Date: 2022/04/26/10:58
 */
@SpringBootApplication
@MapperScan("com.xing.hosp.mapper")
@ComponentScan("com.xing") //扫描swagger
@EnableDiscoveryClient  //开启服务发现
@EnableFeignClients(basePackages = "com.xing") //开启远程调用
public class ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
    }
}
